﻿using JNPF.Common.Models.VisualDev;
using Mapster;

namespace JNPF.VisualDev.Engine.Mapper;

internal class VisualDev : IRegister
{
    public void Register(TypeAdapterConfig config)
    {
        config.ForType<FieldsModel, ListSearchParametersModel>()
           .Map(dest => dest.jnpfKey, src => src.__config__.jnpfKey)
           .Map(dest => dest.format, src => src.format)
           .Map(dest => dest.multiple, src => src.multiple)
           .Map(dest => dest.searchType, src => src.searchType)
           .Map(dest => dest.vModel, src => src.__vModel__);
    }
}